<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        function re(n){
            if(n<0){
                return '不能输入小于0';
            }else if(n==0){
                return 0;
            }else if(n==1){
                return 1;
            }else if(n>1){
                return re(n-1)+re(n-2);
            }
        }
        console.log(re(10));
        </script>
        <a href="../第四章.html">返回第四章</a>
    
</body>
</html>